<?php
namespace app\baseinfo\controller;

class CarriageCodes extends \app\common\controller\Base {
	protected $modelname='CarriageCode';
	protected $autoWriteUserId=true;

	use \app\common\controller\BaseLog;

	public function _index(){
		$condition=[];
		$param=$this->param;
		if (isset($param['product_id']))
			$condition[]=['product_id','in',$param['product_id']];
		if (isset($param['keyword']))
			$condition[]=['code','like',"%".$param['keyword']."%"];

		return $condition;
	}
}

?>